package com.GroupSix.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("wrongquestion")
public class WrongQuestionEntity implements Serializable {
   @TableId(type = IdType.AUTO)

   private Long id;               //错题ID主键自增

   private Integer userId;         //用户ID,外键,关联学生表student_id

   private Long questionId;     //题目ID,外键,关联题目表questionbank的id字段

   private Integer countIncorrect; //错误次数

   private Integer countCorrect;  //正确次数

   private String comment;    //错题备注

   private Integer isActive;     //激活标志

   @TableField(exist = false) // 该字段在数据库中不存在,从questionbank中获取，题目难度
   private Integer difficulty;

   @TableField(exist = false)// 该字段在数据库中不存在,从questionbank中获取，题目分值
   private Integer score;

   @TableField(exist = false)// 该字段在数据库中不存在,从questionbank中获取，题目内容
   private String content;

   @TableField(exist = false)// 该字段在数据库中不存在,从questionbank中获取，题目科目qssubject
   private String qsknowledge;


   @TableField(exist = false)// 该字段在数据库中不存在,从questionbank中获取，题目科目qscourse
   private Integer qscourse;


   @TableField(exist = false)
   private String orderBy; // 排序字段

   @TableField(exist = false)
   private String orderDirection; // 排序方向  desc倒序 asc正序

   @TableField(exist = false)
   private Integer Num; //错题数量 查询条件


}
